home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 10729 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.0 KB

  1. Path: inforamp.net!ts6-06
  2. From: rmorin@inforamp.net (Randy Charles Morin)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: How To Implement Registration Period
  5. Date: Sat, 09 Mar 96 20:07:05 GMT
  6. Organization: MiddleWorld SoftWare
  7. Message-ID: <4hsodm$rsm@sam.inforamp.net>
  8. References: <DnyHvE.46F@ranger.daytonoh.attgis.com>
  9. NNTP-Posting-Host: ts6-06.tor.inforamp.net
  10. X-Newsreader: News Xpress Version 1.0 Beta #4
  11.  
  12. In article <DnyHvE.46F@ranger.daytonoh.attgis.com>,
  13.    Jeff Miko <Jeff.Miko@DaytonOH.ncr.com> wrote:
  14. >I have built an OLE custom control (OCX) and I would like 
  15. >suggestions on how I can implement a 30 day registration 
  16. >period.
  17. >I want the control to work for 30 days and then stop.
  18.  
  19. Alot of people use to use this type of protection when distributing shareware. 
  20.  My suggestion is not to use this type, because some hacker almost always 
  21. trick the shareware into thinking the 30 days have not expired.  What I do is 
  22. add a function to register the software every month or so.  
  23.  
  24. 1    Everytime you initialize the control, check the system clock.
  25. 2    If it is not the first day of the month, then goto 5, otherwise 
  26. continue with step 3.
  27. 3    Display a dialog informing the user that the control is shareware and 
  28. that he must register the software to use it for any purpose other then 
  29. demonstration and testing.
  30. 4    When the user clicks ok, open the notepad editor (or similar) and 
  31. stuff the registration information into the editor.  You could ship a TXT file 
  32. with the OCX and tell the users that they must distribute the TXT with the OCX 
  33. or the OCX won't work.
  34. 5    Check that all components that should be distributed with your control 
  35. are in the current directly.  If the any components are missing or have been 
  36. modified then terminate, otherwise continue with normal processing.
  37.  
  38. Nobody will distribute this control because it would annoy the hell out of the 
  39. users.  But it's convenient because the user then has the opportunity to 
  40. register it.  If the programmer does distribute your shareware control, then 
  41. you are basically getting free advertising.  Good deal right.
  42.  
  43. Agrivar
  44.